﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NeedMaterialDetailShow.aspx.cs" Inherits="weba.Sales.NeedMaterialDetailShow" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
         <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="30" background="../Images/tab_05.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="12" height="30">
                                        <img src="../Images/tab_03.gif" width="12" height="30" />
                                    </td>
                                    <td>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="46%" valign="middle">
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td>
                                                                <div align="center">
                                                                    <img src="../images/tb.gif" width="16" height="16" /></div>
                                                            </td>
                                                            <td width="95%">
                                                                <span class="titleBold12px">查看用料单明细</span>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td width="54%" align="right">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="16" height="30">
                                        <img src="../Images/tab_07.gif" width="16" height="30" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="8" background="../images/tab_12.gif">
                                        &nbsp;
                                    </td>
                                    <td>
                                        <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <br />
                                                    <asp:Label ID="lblNeedMaterialID" runat="server" Visible="False"></asp:Label>
                                                    <asp:Label ID="lblSalesOrderID" runat="server" Visible="False"></asp:Label>
                                                    <asp:Label ID="lblRootDepartmentID" runat="server" Visible="False"></asp:Label>
                                                    <asp:GridView ID="myGridView" runat="server" AutoGenerateColumns="False" DataKeyNames="DetailID,MaterialID,ManufacturerID"
                                                        Width="100%" OnRowDataBound="myGridView_RowDataBound">
                                                        <Columns>
                                                            <asp:BoundField DataField="DetailID" HeaderText="ID" />
                                                            <asp:BoundField DataField="Name" HeaderText="货号" />
                                                            <asp:BoundField DataField="UnitPrice" DataFormatString="{0:c}" HeaderText="单价" />
                                                            <asp:BoundField DataField="Quantity" HeaderText="数量" />
                                                            <asp:BoundField DataField="Subtotal" DataFormatString="{0:c}" HeaderText="小计" />
                                                        </Columns>
                                                    </asp:GridView>
                                                </td>
                                            </tr>
                                            <asp:Panel ID="pnlMoney" runat="server" Width="100%">
                                            <tr>
                                                <td width="100" height="30" align="right">
                                                    客户合同金额：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtContractAmount" runat="server"></asp:TextBox>
                                                    元<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtContractAmount"
                                                        Display="Dynamic" ErrorMessage="请输入合计金额" SetFocusOnError="True" ValidationGroup="ok"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator6" ValidationGroup="ok"
                                                        runat="server" ErrorMessage="只能输入整数或小数" ValidationExpression="^(\d)+(\.\d+)?$"
                                                        ControlToValidate="txtContractAmount"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="100" height="30" align="right">
                                                    合计金额：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtSubTotal" runat="server"></asp:TextBox>
                                                    元<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="txtSubTotal"
                                                        Display="Dynamic" ErrorMessage="请输入合计金额" SetFocusOnError="True" ValidationGroup="ok"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" ValidationGroup="ok"
                                                        runat="server" ErrorMessage="只能输入整数或小数" ValidationExpression="^(\d)+(\.\d+)?$"
                                                        ControlToValidate="txtSubTotal"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="100" height="30" align="right">
                                                    实付款：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtTotalDue" runat="server"></asp:TextBox>
                                                    元<asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="txtTotalDue"
                                                        Display="Dynamic" ErrorMessage="请输入实付款" SetFocusOnError="True" ValidationGroup="ok"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" ValidationGroup="ok"
                                                        runat="server" ErrorMessage="只能输入整数或小数" ValidationExpression="^(\d)+(\.\d+)?$"
                                                        ControlToValidate="txtTotalDue"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td width="100" height="30" align="right">
                                                    其他金额：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtBrokerage" runat="server"></asp:TextBox>
                                                    元<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtBrokerage"
                                                        Display="Dynamic" ErrorMessage="请输入其他金额" SetFocusOnError="True" ValidationGroup="ok"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" ValidationGroup="ok"
                                                        runat="server" ErrorMessage="只能输入整数或小数" ValidationExpression="^(\d)+(\.\d+)?$"
                                                        ControlToValidate="txtBrokerage"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            </asp:Panel>
                                            <tr>
                                                <td colspan="2" align="center">
                                                <br />
                                                    <asp:Button ID="btnClose" runat="server" Font-Size="16px" Height="30px" Text="关闭"
                                                        Width="100px" OnClientClick="window.close();" />
                                                    <br />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="8" background="../images/tab_15.gif">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="35" background="../images/tab_19.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="12" height="35">
                                        <img src="../images/tab_18.gif" width="12" height="35" />
                                    </td>
                                    <td align="center">
                                        &nbsp;
                                    </td>
                                    <td width="16">
                                        <img src="../images/tab_20.gif" width="16" height="35" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
